package com.yenlien.traceyun.plant.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Date 2022/8/30
 * @Author jiaLong
 * @Descript 西昌冷库
 */
@Entity
@Table(name = "t_cold_storage")
//@HeadRowHeight(10)
public class ColdStorage extends BaseEntity {
    // easypoi 导出
    @Excel(name="冷库面积", width = 12)
    private String area;        // 冷库面积

    @Excel(name="冷库名称", width = 12)
    private String name;        // 冷库名称

    @Excel(name="冷库编号", width = 12)
    private Integer serial;      // 冷库编号

    @Excel(name="出租状态", width = 8)
    private String rentState;        // 出租状态 1=未出租  2=已出租

    @Excel(name="出租对象名称", width = 12)
    private String rentName;        // 出租对象名称

    private String rentUserId;        // 出租对象

    private String rentStartTime;   // 出租开始时间
    private String rentEndTime;     // 出租结束时间

    private String companyId;       // 所属企业

    @Transient
    private String temperature; // 该冷库最近温度
    @Transient
    private String address; //地址
    @Transient
    private String securityService;     // 安防服务
    @Transient
    private String infoService;     // 信息化服务
    @Transient
    private String devService;     // 冷库设施服务

    @Excel(name="所属企业", width = 15)
    private String compName;        // 所属企业

    private String img;       // 冷库图片

    @Transient
    @Excel(name = "冷库图片", type = 2, width = 40, height = 40, imageType = 2)
    private byte[] imgByte;       // 冷库图片

    @Excel(name="状态", width = 15)
    private String state;           // 状态  1=启用  2=禁用

    private String devId;       // 设备序列号ID  监控点id  只绑定温度设备，所以直接在冷库上绑定
    private String boxId;       // 物联网盒子ID

    private String manufacturer;        // 设备厂商     1=精创(物联网盒子是繁易)    2=驿唐     3=蓝蜂


    private String createTime;

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSecurityService() {
        return securityService;
    }

    public void setSecurityService(String securityService) {
        this.securityService = securityService;
    }

    public String getInfoService() {
        return infoService;
    }

    public void setInfoService(String infoService) {
        this.infoService = infoService;
    }

    public String getDevService() {
        return devService;
    }

    public void setDevService(String devService) {
        this.devService = devService;
    }

    public String getRentUserId() {
        return rentUserId;
    }

    public void setRentUserId(String rentUserId) {
        this.rentUserId = rentUserId;
    }

    public String getBoxId() {
        return boxId;
    }

    public void setBoxId(String boxId) {
        this.boxId = boxId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSerial() {
        return serial;
    }

    public void setSerial(Integer serial) {
        this.serial = serial;
    }

    public byte[] getImgByte() {
        return imgByte;
    }

    public void setImgByte(byte[] imgByte) {
        this.imgByte = imgByte;
    }



    public String getRentState() {
        return rentState;
    }

    public void setRentState(String rentState) {
        this.rentState = rentState;
    }

    public String getRentName() {
        return rentName;
    }

    public void setRentName(String rentName) {
        this.rentName = rentName;
    }

    public String getRentStartTime() {
        return rentStartTime;
    }

    public void setRentStartTime(String rentStartTime) {
        this.rentStartTime = rentStartTime;
    }

    public String getRentEndTime() {
        return rentEndTime;
    }

    public void setRentEndTime(String rentEndTime) {
        this.rentEndTime = rentEndTime;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompName() {
        return compName;
    }

    public void setCompName(String compName) {
        this.compName = compName;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
